export function getToken() {
  return localStorage.getItem('mall-front-tenant-Token')
}

export function setToken(token) {
  return localStorage.setItem('mall-front-tenant-Token', token)
}

export function removeToken() {
  return localStorage.removeItem('mall-front-tenant-Token')
}
export function getBtn() {
  return JSON.parse(localStorage.getItem('mall-front-tenant-Btn'))
}

export function setBtn(btn) {
  return localStorage.setItem('mall-front-tenant-Btn', JSON.stringify(btn))
}

export function getTenantId() {
  return localStorage.getItem('mall-current-tenant-id')
}

export function setTenantId(tenantId) {
  window.localStorage.setItem('JmReport-Tenant-Id', tenantId)
  return localStorage.setItem('mall-current-tenant-id', tenantId)
}
